<li>
  <%= gravatar_for(user, size: 30) %>
  <%=link_to user.name,user%>
  |  <%= link_to 'delete',user,method: :delete,data:{confirm: '确定删除?'}%>

</li>
<br>